package com.hsmpay.mobile.service.other.impl;

import com.hsmpay.common.service.impl.BaseServiceSupport;
import com.hsmpay.mobile.dao.other.FeedbackDao;
import com.hsmpay.mobile.pojo.other.Feedback;
import com.hsmpay.mobile.service.other.FeedbackService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户反馈 服务类接口 feedbackService
 * 对应Dao feedbackDao
 *
 * @author 颜铃璋
 *         创建时间： 2012-1-18
 */
@Service("feedbackService")
public class FeedbackServiceImpl extends BaseServiceSupport<Feedback, Long> implements FeedbackService<Feedback, Long> {
    @Resource(name = "feedbackDao")
    private FeedbackDao<Feedback, Long> feedbackDao;

    /**
     * 添加 用户反馈
     *
     * @param feedback
     * @return
     * @throws Exception
     */
    public Long insertFeedback(Feedback feedback) throws Exception {
        //Long organizationId = orgTerminalDao.getOrganizationId(feedback.getTerminalTypeId(),feedback.getRoleId());
        //feedback.setOrganizationId(organizationId);
        return feedbackDao.insertEntity(feedback);
    }

}
